import 'package:beng_beng_utils/bengbeng_utils.dart';

Future<void> initFirst(
    {BBLogType level = BBLogType.none,
    bool isCacher = false,

    String appName = "bengbeng"}) async {
  await GetSp.initSp();
  BBLogUtils.setLogLevel(level);
  BBLogUtils.setCacher(isCacher);
  BBLogUtils.setAppName(appName);
}

Future<void> initBengBengDefault({String appName = "bengbeng"}) async {
  bool inProduction = const bool.fromEnvironment("dart.vm.product");
  await initFirst(
      level: inProduction ? BBLogType.none : BBLogType.debug,
      isCacher: !inProduction,

      appName: appName);
}
